Component({
    properties: {
        tabbarshow: {
            type: Boolean,
            value: !0
        },
        selected: {
            type: Number,
            value: 0,
            // observer: function(e, t) {
            //     this.setData({
            //         selected: e
            //     });
            // }
        }
    },
    data: {
        color: "#3A3A3A",
        selectedColor: "#3E78FF",
        borderStyle: "black",
        backgroundColor: "#ffffff",
        list: [ {
            pagePath: "/page/tabBar/wheat/index",
            iconPath: "/image/icon_wheat.png",
            selectedIconPath: "/image/icon_wheat_HL.png",
            text: "排麦"
        }, {
            pagePath: "/page/tabBar/wages/index",
            iconPath: "/image/icon_wages.png",
            selectedIconPath: "/image/icon_wages_HL.png",
            text: "工资表"
        } ]
    },
    attached: function() {},
    methods: {
        switchTab: function(e) {
            var t = e.currentTarget.dataset.path;
            wx.switchTab({
                url: t
            });
        }
    }
});